/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
package org.colswe.testingProject.control;

import java.util.Collection;
import javax.persistence.Persistence;
import org.colswe.testingProject.dao.ApplicationTypeDao;
import org.colswe.testingProject.entity.ApplicationType;

/**
 * Clase ApplicationTypeControl oara el manejo de ApplicationType.
 *
 * @author andres
 */
public class ApplicationTypeControl {

    /**
     * Dao para el manejo de Tipos de Solicitud.
     */
    private ApplicationTypeDao dao;

    /**
     * Contructor de ApplicationtypeControl.
     */
    public ApplicationTypeControl() {
        dao = new ApplicationTypeDao(Persistence.createEntityManagerFactory("TPPU"));
    }

    /**
     * Leer todos los ApplicationType.
     *
     * @return Lista con todos los ApplicationType.
     */
    public Collection<ApplicationType> readAll() {
        return dao.readAll();
    }
}
